package system;

import uci.rt.ccr1c.engine.matrix.Mat;

public class TestSystemSolver
{
	 public static void main(String[] args) throws Exception
	{
//		 double[][] sys = new double[][]{
//				 {1,1,1},
//				 {0,2,5},
//				 {2,5,-1}
//		 };
//		 
//		 double[] b = new double[]{6,-4,27};
		 
		 double[][] sys = new double[][]{
				 {1,1,1,1,1,1},
				 {2,-1,1,1,1,1},
				 {1,1,-6,1,1,1},
				 {1,1,-6,5,1,1},
				 {2,-1,1,1,2,1},
				 {2,-1,1,1,2,2}
		 };
		 
		 double[] b = new double[]{4,1,-17,-13,-1,-2};
		 

		SystemEQ seq= new SystemEQ(sys,b);
		seq.solve();
		Mat solution = seq.getSolution();
		solution.print("sol",solution.getRowDimension(),1);
		
	}
}
